﻿using System;
using Medianamik.Core.Sugar;

namespace Medianamik.UI.Web.MVP
{
    public class IdEventArgs : EventArgs
    {
        public IdEventArgs(Guid? id)
        {
            _id = id;
        }

        public IdEventArgs(string id)
        {
            StringHelper.IsGuid(id, ref _id);
        }

        private readonly Guid? _id;
        public Guid? Id
        {
            get { return _id; }
        }
    }
}
